package com.netposa.datawarehouse.aggregator.web.model;

import com.netposa.appwebres.extend.Page;
import java.util.List;
import org.apache.commons.lang3.StringUtils;

public class DefaultCondition extends Page {
   private String deviceIds;
   private String deviceId;
   private Long startTime;
   private Long endTime;
   private String sources;
   private List modules;

   public void setDeviceIds(String deviceIds) {
      this.deviceIds = deviceIds;
      if (StringUtils.isBlank(this.deviceId) && StringUtils.isNotBlank(deviceIds)) {
         this.deviceId = deviceIds;
      }

   }

   public void setDeviceId(String deviceId) {
      this.deviceId = deviceId;
      if (StringUtils.isBlank(this.deviceIds) && StringUtils.isNotBlank(deviceId)) {
         this.deviceIds = deviceId;
      }

   }

   public String getDeviceIds() {
      return this.deviceIds;
   }

   public String getDeviceId() {
      return this.deviceId;
   }

   public Long getStartTime() {
      return this.startTime;
   }

   public Long getEndTime() {
      return this.endTime;
   }

   public String getSources() {
      return this.sources;
   }

   public List getModules() {
      return this.modules;
   }

   public void setStartTime(Long startTime) {
      this.startTime = startTime;
   }

   public void setEndTime(Long endTime) {
      this.endTime = endTime;
   }

   public void setSources(String sources) {
      this.sources = sources;
   }

   public void setModules(List modules) {
      this.modules = modules;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof DefaultCondition)) {
         return false;
      } else {
         DefaultCondition other = (DefaultCondition)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$deviceIds = this.getDeviceIds();
            Object other$deviceIds = other.getDeviceIds();
            if (this$deviceIds == null) {
               if (other$deviceIds != null) {
                  return false;
               }
            } else if (!this$deviceIds.equals(other$deviceIds)) {
               return false;
            }

            Object this$deviceId = this.getDeviceId();
            Object other$deviceId = other.getDeviceId();
            if (this$deviceId == null) {
               if (other$deviceId != null) {
                  return false;
               }
            } else if (!this$deviceId.equals(other$deviceId)) {
               return false;
            }

            Object this$startTime = this.getStartTime();
            Object other$startTime = other.getStartTime();
            if (this$startTime == null) {
               if (other$startTime != null) {
                  return false;
               }
            } else if (!this$startTime.equals(other$startTime)) {
               return false;
            }

            label62: {
               Object this$endTime = this.getEndTime();
               Object other$endTime = other.getEndTime();
               if (this$endTime == null) {
                  if (other$endTime == null) {
                     break label62;
                  }
               } else if (this$endTime.equals(other$endTime)) {
                  break label62;
               }

               return false;
            }

            label55: {
               Object this$sources = this.getSources();
               Object other$sources = other.getSources();
               if (this$sources == null) {
                  if (other$sources == null) {
                     break label55;
                  }
               } else if (this$sources.equals(other$sources)) {
                  break label55;
               }

               return false;
            }

            Object this$modules = this.getModules();
            Object other$modules = other.getModules();
            if (this$modules == null) {
               if (other$modules != null) {
                  return false;
               }
            } else if (!this$modules.equals(other$modules)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof DefaultCondition;
   }

   public int hashCode() {
      
      int result = 1;
      Object $deviceIds = this.getDeviceIds();
      result = result * 59 + ($deviceIds == null ? 43 : $deviceIds.hashCode());
      Object $deviceId = this.getDeviceId();
      result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
      Object $startTime = this.getStartTime();
      result = result * 59 + ($startTime == null ? 43 : $startTime.hashCode());
      Object $endTime = this.getEndTime();
      result = result * 59 + ($endTime == null ? 43 : $endTime.hashCode());
      Object $sources = this.getSources();
      result = result * 59 + ($sources == null ? 43 : $sources.hashCode());
      Object $modules = this.getModules();
      result = result * 59 + ($modules == null ? 43 : $modules.hashCode());
      return result;
   }

   public String toString() {
      return "DefaultCondition(deviceIds=" + this.getDeviceIds() + ", deviceId=" + this.getDeviceId() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", sources=" + this.getSources() + ", modules=" + this.getModules() + ")";
   }
}
